package com.async.designpatterns.create.builder;

import java.util.Date;

public class ConcreteBuilder2 implements IBuilder {
    private Product product = new Product();

    @Override
    public void initName() {
        product.setName("奔驰GL300");
    }

    @Override
    public void initTime() {
        product.setProductTime(new Date().toString());
    }

    @Override
    public void setCompany() {
        product.setProductCompany("奔驰（德国）");
    }

    @Override
    public void setPrice() {
        product.setPrice("125.5W RMB");
    }

    @Override
    public void setType() {
        product.setUseType("汽车（交通/出行）");
    }

    @Override
    public Product create() {
        return product;
    }
}
